/**
 * 项目表 api 封装
 *
 * @Author:    zzx
 * @Date:      2025-08-07 13:47:01
 * @Copyright  zzx
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const projectInfoApi = {

  /**
   * 分页查询  @author  zzx
   */
  queryPage : (param) => {
    return postRequest('/projectInfo/queryPage', param);
  },

  /**
   * 增加  @author  zzx
   */
  add: (param) => {
      return postRequest('/projectInfo/add', param);
  },

  /**
   * 修改  @author  zzx
   */
  update: (param) => {
      return postRequest('/projectInfo/update', param);
  },


  /**
   * 删除  @author  zzx
   */
  delete: (id) => {
      return getRequest(`/projectInfo/delete/${id}`);
  },

  /**
   * 批量删除  @author  zzx
   */
  batchDelete: (idList) => {
      return postRequest('/projectInfo/batchDelete', idList);
  },

  detail: (id) => {
      return getRequest(`/projectInfo/detail/${id}`)
  }
};
